﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WhiteBoard
{
    public partial class SpotLight : Form
    {
        public SpotLight()
        {
            InitializeComponent();
        }

        private void SpotLight_Load(object sender, EventArgs e)
        {
            Glass glassForm = new Glass();
            glassForm.Show(this);
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnCircle_Click(object sender, EventArgs e)
        {
            //System.IO.FileStream fs;
            //fs = new System.IO.FileStream(@"E:\程序\WhiteBoard\WhiteBoard\icon\circle.png", System.IO.FileMode.Open, System.IO.FileAccess.Read);
            //pictureBox.Image = System.Drawing.Image.FromStream(fs);
            //fs.Close();
            Bitmap bmp = new Bitmap(Resource1.circle);
            pictureBox.Image = bmp;
        }

        private void btnRectangle_Click(object sender, EventArgs e)
        {
            //System.IO.FileStream fs;
            //fs = new System.IO.FileStream(@"E:\程序\WhiteBoard\WhiteBoard\icon\rectangle.png", System.IO.FileMode.Open, System.IO.FileAccess.Read);
            //pictureBox.Image = System.Drawing.Image.FromStream(fs);
            //fs.Close();
            Bitmap bmp = new Bitmap(Resource1.rectangle);
            pictureBox.Image = bmp;
        }

        private void btnTriangle_Click(object sender, EventArgs e)
        {
            //System.IO.FileStream fs;
            //fs = new System.IO.FileStream(@"E:\程序\WhiteBoard\WhiteBoard\icon\triangle.png", System.IO.FileMode.Open, System.IO.FileAccess.Read);
            //pictureBox.Image = System.Drawing.Image.FromStream(fs);
            //fs.Close();
            Bitmap bmp = new Bitmap(Resource1.triangle);
            pictureBox.Image = bmp;
        }

        private void btnStar_Click(object sender, EventArgs e)
        {
            //System.IO.FileStream fs;
            //fs = new System.IO.FileStream(@"E:\程序\WhiteBoard\WhiteBoard\icon\star.png", System.IO.FileMode.Open, System.IO.FileAccess.Read);
            //pictureBox.Image = System.Drawing.Image.FromStream(fs);
            //fs.Close();
            Bitmap bmp = new Bitmap(Resource1.star);
            pictureBox.Image = bmp;
        }

        private void panel1_Paint(object sender, PaintEventArgs e)
        {
            panel1.Left = this.Width - 200;
            panel1.Top = this.Height - 40;
        }

    }
}
